package com.ctgu.elasticsearch.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName t_hotel
 */
@TableName(value ="t_hotel")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HotelEntity {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 价格
     */
    @TableField(value = "price")
    private Integer price;

    /**
     * 品牌
     */
    @TableField(value = "brand")
    private String brand;

    /**
     * 城市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 经度
     */
    @JsonIgnore
    @TableField(value = "longitude")
    private BigDecimal longitude;

    /**
     * 纬度
     */
    @JsonIgnore
    @TableField(value = "latitude")
    private BigDecimal latitude;

    /**
     * 是否为广告
     */
    @TableField(value = "isAD")
    private Boolean isAD;

    // 显示查询结果 location
    @TableField(exist = false)
    private Map<String, Double> location;
}